package com.ecut.property_project.service.base;

import com.ecut.property_project.mapper.base.BasePurposeMapper;
import com.ecut.property_project.model.base.BasePurpose;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BasePurposeService{

    @Resource
    private BasePurposeMapper basePurposeMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return basePurposeMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(BasePurpose record) {
        return basePurposeMapper.insert(record);
    }

    
    public int insertSelective(BasePurpose record) {
        return basePurposeMapper.insertSelective(record);
    }

    public List<BasePurpose> selectAll(){
        return basePurposeMapper.selectAll();
    }

    public List<BasePurpose> selectByPage(Integer page, Integer pageSize){return basePurposeMapper.selectByPage(page,pageSize);}

    public BasePurpose selectByPrimaryKey(Integer id) {
        return basePurposeMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(BasePurpose record) {
        return basePurposeMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(BasePurpose record) {
        return basePurposeMapper.updateByPrimaryKey(record);
    }

}
